import request from "@/utils/request";

// 查询小区信息列表
export function listBizHousingInfo(query){
  return request({
    url: "/biz/bizHousingInfo/list",
    method: "get",
    params: query
  })
}

// 查询小区信息详细
export function getBizHousingInfo(id){
  return request({
    url: "/biz/bizHousingInfo/" + id,
    method: "get"
  })
}

// 新增小区信息
export function addBizHousingInfo(data){
  return request({
    url: "/biz/bizHousingInfo",
    method: "post",
    data: data
  })
}

// 修改小区信息
export function updateBizHousingInfo(data){
  return request({
    url: "/biz/bizHousingInfo",
    method: "put",
    data: data
  })
}

// 删除小区信息
export function delBizHousingInfo(id){
  return request({
    url: "/biz/bizHousingInfo/" + id,
    method: "delete"
  })
}

// 查询最大编号
export function findMaxSort(){
  return request({
    url: "/biz/bizHousingInfo/findMaxSort",
    method: "get"
  })
}
// 导出小区信息
export function exportBizHousingInfo (query){
  return request({
    url: "/biz/bizHousingInfo/export",
    method: "get",
    params: query
  })
}
